package com.tx.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tx.entity.User;
import org.apache.ibatis.annotations.Param;


public interface UserMapper extends BaseMapper<User> {

    /**
     * 获取用户最大的ID编号
     * @return
     */
    public Integer selectMaxId();


    /**
     * 根据条件进行分页查询
     */
    Page<User> selectUserByPage(@Param("userPage") Page<User> userPage,@Param("user") User user);


}
